import { defineStore } from "pinia";

const defaultStore = {
    drawing: false,
    setting: false,
    size: {
        width: 0,
        height: 0,
    },
    pots: []
};

export const useFactory = defineStore("factory", {
    state: () => defaultStore,

    getters: {},
    actions: {
        changeSetting(val: boolean) {
            this.setting = val;
        },
        changeDrawing(val: boolean) {
            this.drawing = val;
        },
        changeSize(val: any) {
            this.size = val;
        },
        changePots(val: any) {
            this.pots = val;
        }
    }
});
